/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: avaj llik
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tcp_publicacionCriteria extends AbstractORMCriteria {
	public final IntegerExpression pub_id;
	public final IntegerExpression pub_monto;
	public final StringExpression pub_descripcion;
	
	public Tcp_publicacionCriteria(Criteria criteria) {
		super(criteria);
		pub_id = new IntegerExpression("pub_id", this);
		pub_monto = new IntegerExpression("pub_monto", this);
		pub_descripcion = new StringExpression("pub_descripcion", this);
	}
	
	public Tcp_publicacionCriteria(PersistentSession session) {
		this(session.createCriteria(Tcp_publicacion.class));
	}
	
	public Tcp_publicacionCriteria() throws PersistentException {
		this(orm.TallerdeSOAPersistentManager.instance().getSession());
	}
	
	public Tcp_personaCriteria createPub_id_personaCriteria() {
		return new Tcp_personaCriteria(createCriteria("pub_id_persona"));
	}
	
	public Tcp_publicacion uniqueTcp_publicacion() {
		return (Tcp_publicacion) super.uniqueResult();
	}
	
	public Tcp_publicacion[] listTcp_publicacion() {
		return (Tcp_publicacion[]) super.list().toArray(new Tcp_publicacion[super.list().size()]);
	}
}

